import _ from "loadsh";
import path from "path";
let config = {
  "viewDir": path.join(__dirname,"..","views"),
  "staticDir": path.join(__dirname,"..","assets")
};

const init = () => {
  if (process.env.NODE_ENV == "development") {
    const localConfig = {
      port: 8000
    };
    config = _.extend(config, localConfig);
  }
  if (process.env.NODE_ENV == "production") {
    const prodConfig = {
      port: 8000
    };
    config = _.extend(config, prodConfig);
  }
  return config;
};

const result = init();
export default result;
